<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class GoodsStoreStockLog extends Model
{
    use HasFactory, SoftDeletes;

    protected $fillable = [
        'store_id', 'goods_id', 'stock_num', 'user_id'
    ];

    public function store()
    {
        return $this->belongsTo(Store::class);
    }

    public function goods()
    {
        return $this->belongsTo(Goods::class);
    }
}
